package com.hotec.PROJECT_NAME.modules.cmd.service;

import com.hotec.PROJECT_NAME.component.basic.BaseService;
import com.hotec.PROJECT_NAME.modules.cmd.entity.CommandLog;
import com.hotec.PROJECT_NAME.modules.cmd.mapper.CommandLogMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author llb
 * @date
 */
@Service
@Transactional
public class CommandLogService extends BaseService<CommandLog, CommandLogMapper> {

    @Transactional(propagation = Propagation.REQUIRES_NEW
    )
    public void addToLog(CommandLog commandLog) {
        this.save(commandLog);
    }
}
